package com.kc.business.domain;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * TODO
 * 商家入驻申请
 *
 * @author zhangshuo
 * @version 1.0
 * @date 2020/9/9
 */
@Data
@Table(name = "biz_shop_enter_form")
public class BizShopEnterForm extends BizBaseEnterForm {

    private static final long serialVersionUID = 7771248064247675442L;
    /** 店铺名称 */
    @NotBlank(message = "店铺名称")
    private String shopName;
    /** 经度 */
    @NotNull(message = "经度不能为空")
    @DecimalMin(value = "-180", message = "经度有误")
    @DecimalMax(value = "180", message = "经度有误")
    private BigDecimal longitude;
    /** 纬度 */
    @NotNull(message = "纬度不能为空")
    @DecimalMin(value = "-90", message = "经度有误")
    @DecimalMax(value = "90", message = "经度有误")
    private BigDecimal latitude;
    /** 所在地 */
    @NotBlank(message = "所在地")
    private String shopAddress;
    /** 营业执照 */
    @NotBlank(message = "营业执照")
    private String license;
    /** 卫生许可 */
    private String hygieneLicense;
    /** 食品经营许可 */
    private String foodLicense;
    /** 分类id */
    @NotNull(message = "分类不能为空")
    private Integer typeId;
    /** 主分类id */
    @NotNull(message = "主分类不能为空")
    private Integer mainTypeId;
    /** 银行账户 */
    private String bankAccount;
    /** 开户行 */
    private String bankName;
    private String adcode;
    /**主类别名称*/
    @Transient
    private String mainTypeName;
    /**次类别名称*/
    @Transient
    private String typeName;
    /**经办人职务*/
    private String userPost;
    /**其他行业资质*/
    private String otherLicence;
    /**电信经营许可证*/
    private String telecomLicence;
}
